package com.gopay.commons.validator;

import java.util.List;

import org.dom4j.Document;
import org.dom4j.DocumentException;

/**
 * 文件定位接口
 * 
 * @ValidatorDefine.java
 * @author yaobo
 * @2012-12-26 上午09:54:43 www.gopay.com.cn Inc.All rights reserved.
 */
public interface ValidatorDefine {
    /**
     * 将定位的formPath路径转成Document数组
     * 
     * @param formPath
     *            文件路径
     * @return
     * @throws DocumentException
     */
    public Document[] read(List<String> formPath) throws DocumentException;

    /**
     * 将多个XML文件合并为一个XML以Document返回
     * 
     * @param documents
     * @return
     * @throws DocumentException
     */
    public Document merge(Document[] documents) throws DocumentException;
}
